package com.fhz.lifeandvm;

import android.util.Log;

import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.OnLifecycleEvent;

/**
 * 时间:2023/8/15
 *
 * @author Mr.Feng
 * 简述:
 */
public class User  implements LifecycleObserver {

    private static final String TAG = "User";
    @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
    public void create(){
        Log.i(TAG, "create: ");
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
    public void destroy(){
        Log.i(TAG, "destroy: ");
    }

}   
